package com.company.hrmadmin.modules.mapper;

import com.company.hrmadmin.modules.domain.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.hrmadmin.modules.entity.bo.UserRoleBO;

/**
 * @author Xmirror
 * @description 针对表【sys_user_role(用户权限)】的数据库操作Mapper
 * @createDate 2022-04-01 14:11:09
 * @Entity com.company.hrmadmin.modules.domain.UserRole
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {

    /**
     * 根据用户ID查询UserRole对象
     *
     * @param userId userId
     * @return UserRole
     */
    UserRoleBO selectByUserId(Integer userId);

}




